package com.zzyy.study.controller;

import jakarta.annotation.Resource;
import org.springframework.ai.chat.ChatClient;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import java.util.Map;

/**
 * @auther zzyy
 * @create 2024-05-19 18:21
 */
@RestController
public class OllamaController
{

    /*@Resource
    private OllamaChatClient ollamaChatClient;

    @GetMapping("/ai/ollama")
    public Map<String, String> completion(@RequestParam(value = "message", defaultValue = "介绍一下麦当劳") String message) {
        return Map.of("generation", ollamaChatClient.call(message));
    }*/
}
